package com.tbit.uqbike.webmanager.dao.core;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tbit.uqbike.object.pojo.VoiceConfig;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;

import java.util.Map;
import java.util.Set;

/**
 * 配置文件
 * @author <a href="mailto:liu.haoxiang@tbit.com.cn">BUGXiang</a>
 * @version 1.0
 * @since 2024/3/26
 */
public interface VoiceConfigDao extends BaseMapper<VoiceConfig> {

    /**
     * 批量查询版本号
     * @param accountIdSet 区域id
     * @return map
     */
    @MapKey("accountId")
    Map<Integer, String> selectByAccountId(@Param("accountIds") Set<Integer> accountIdSet);

    /**
     * 插入和更新数据
     * @param config
     */
    void repalce(VoiceConfig config);
}
